package com.itheima.service;

import com.itheima.common.Com.AddressBook;
import com.itheima.common.vo.AddressBookDto;
import com.itheima.common.vo.AddressBookVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface AddressBookService {
    List<AddressBook> list();

    AddressBookVo add(AddressBookVo addressBookVo);

    AddressBook getByid(String id);

    AddressBook getmoren();

    boolean updateMoren(AddressBookDto addressBookDto);

    boolean updateById(AddressBook addressBook);

    boolean delete(String ids);
}
